{% extends "base.html" %}
 

{% block head %}
    <title>主机修改</title>
{% endblock %} 

{% block content %}
 <form action="/updatebyid/{{ res_list.id }}/" method="post" class="form-horizontal">
                        <div class="form-group clearfix f14">
                            <label class="col-sm-3 control-label bk-lh30 pt0">服务器名：</label>
                            <div class="col-sm-9">
                                <input type="text"  class="form-control bk-valign-top" id="hostname" name="hostname" placeholder="" value={{ res_list.hostname }}> </div>
                        </div>
                        <div class="form-group clearfix ">
                            <label class="col-sm-3 control-label bk-lh30 pt0">操作系统：</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control bk-valign-top" id="os" name="os" placeholder="" value={{ res_list.os }} > </div>
                        </div>
                        <div class="form-group clearfix ">
                            <label class="col-sm-3 control-label bk-lh30 pt0">CPU：</label>
                            <div class="col-sm-9">
                                <input type="text"  class="form-control bk-valign-top" id="cpu" name="cpu" placeholder="" value={{ res_list.cpu }}> </div>
                        </div>
                        <div class="form-group clearfix ">
                            <label class="col-sm-3 control-label bk-lh30 pt0">内存：</label>
                            <div class="col-sm-9">
                                <input type="text"  class="form-control bk-valign-top" id="memory" name="memory" placeholder="" value={{ res_list.memory }}> </div>
                        </div>
                        <div class="form-group clearfix ">
                            <label class="col-sm-3 control-label bk-lh30 pt0">IP地址：</label>
                            <div class="col-sm-9">
                                <input type="text"  class="form-control bk-valign-top" id="ip" name="ip" placeholder="" value={{ res_list.ip }}> </div>
                        </div>
                        <div class="form-group clearfix">
                            <div class="col-sm-9 col-sm-offset-3">
                                <button type="submit" class="king-btn mr10  king-success">提交</button>
                                <a href="../../show" style="color:black" ><button type="button" class="king-btn king-default ">取消</button></a>
                            </div>
                        </div>
                    </form>
{% endblock %} 